<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<form id="material" method="post" enctype="multipart/form-data"
	class="easyui-form">
	<input type="hidden" name="id" value="${inter.tb_interview_id }" />
	<div style="float: left;">
		<div class="form-item required">
			<label for="">学员班级</label> <input class="easyui-combobox"
				style="width: 200px;"
				data-options="editable:false,
					valueField:'tb_classes_id', 
		            textField:'class_name', 
		            url:'teaemploy/getClassList',
		            panelHeight:'auto',
		            required:true,
		            onSelect:function(rec){
           	 			$('[comboname=student]').combobox('clear');  
            			$('[comboname=student]').combobox('reload', 'teaemploy/getStudentListByClass/' + rec.tb_classes_id);
            			$('[comboname=student]').combobox({
            				valueField:'tb_student_id',
		            		textField:'student_name',
		            		panelHeight:'auto',
		            		required:true,
		            		editable:true,
            			});
        			},  
        			onLoadSuccess:function(){  
            			var value = $(this).combobox('getValue');
            			if(value != ''){
            				$('[comboname=student]').combobox('reload', 'teaemploy/getStudentListByClass/' + $(this).combobox('getValue'));  
                		}  
        			}"
				value="${inter.tb_classes_id }" />

		</div>
		<div class="form-item required">
			<label for="">学员姓名</label> <input name="student"
				value="${inter.tb_student_id }" class="easyui-combobox"
				style="width: 200px;"
				data-options="required:true,panelHeight:'auto',prompt:'请先填入班级'">
		</div>

		<div class="form-item required">
			<label for="">面试公司</label> <input name="company" type="text"
				data-options="required:true" class="easyui-textbox"
				value="${inter.company }" />
		</div>

		<div class="form-item required">
			<label for="">面试职位</label> <input name="job" type="text"
				data-options="required:true" class="easyui-textbox"
				value="${inter.inter_job }" />
		</div>
	</div>
	<div style="float: left;">
		<div class="form-item required">
			<label for="">面试时间</label> <input name="ivtime"
				class="easyui-datetimebox"
				data-options="required:true,showSeconds:false,editable:false"
				value="${inter.ivtime }" style="width: 200px">
		</div>

		<div class="form-item required">
			<label for="">面试结果</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="radio" name="result" value="0"
				${empty inter || inter.result == '0' ? 'checked' : ''}>否
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio"
				name="result" value="1" ${inter.result == '1' ? 'checked' : ''}>是
		</div>
		<input type="hidden" name="interData"
			value="${inter.tb_interview_data_id }" />
		<div class="form-item">
			<label for="">资料类型</label> <select id="type" name="type"
				class="easyui-combobox" style="width: 200px"
				data-options="editable:false, panelHeight:'auto'">
				<option value=""></option>
				<option value="图片" ${inter.type=='图片' ? 'selected' : ''}>图片</option>
				<option value="音频" ${inter.type=='音频' ? 'selected' : ''}>音频</option>
			</select>
		</div>

		<div class="form-item">
			<label for="">上传资料</label> <input class="easyui-filebox"
				style="width: 200px" name="content" accept="image/*,audio/*">
		</div>
	</div>
</form>